import Vue from 'vue'
import Router from 'vue-router'
import login from '@/pages/login'
import home from '@/pages/home'
import index from '@/pages/index'
import personal from '@/pages/personal'
import cell from '@/pages/cell'

Vue.use(Router)

export default new Router({
  routes: [
  	{
      path: '/login',
      name: 'login',
      component: login
    },
  	{
      path: '/',
      name: 'home',
      component: home,
      children: [
        {
          path: '/index',
          name: 'index',
          component: index
        },
        {
          path: '/personal',
          name: 'personal',
          component: personal
        }
      ]
    },
    {
      path: '/cell',
      name: 'cell',
      component: cell
    }
  ]
})
